using AutoMapper;
using Simple.Admin.System;
using Simple.Admin.System.Dtos;
using Volo.Abp.Identity;

namespace Simple.Admin;

public class AdminApplicationAutoMapperProfile : Profile
{
    public AdminApplicationAutoMapperProfile()
    {
        CreateMap<IdentityUser, IdentityUserDto>()
              .MapExtraProperties();
        CreateMap<IdentityUserDto, IdentityUser>()
            .MapExtraProperties();
        CreateMap<MenuEntity, MenuDto>();
        CreateMap<CreateMenuInput, MenuEntity>();
        CreateMap<UpdateMenuInput, MenuEntity>();
    }
}
